package com.cskaoyan.service.wx;

import com.cskaoyan.bean.promotebean.Coupon;
import com.cskaoyan.bean.promotebean.CouponExample;
import com.cskaoyan.bean.promotebean.CouponUser;
import com.cskaoyan.bean.promotebean.CouponUserExample;
import com.cskaoyan.vo.BaseRespVo;
import com.cskaoyan.vo.wx.WxCouponMyListVo;

import java.util.List;

public interface WxCouponService {
    BaseRespVo receive(Integer couponId,Integer userID);

    WxCouponMyListVo mylist(CouponUserExample couponUserExample, Integer page, Integer size);

    Coupon findTheCoupon(Integer couponId,String code);

    BaseRespVo exchange(String code,Integer userId);

    Integer userAddCoupon(Coupon coupon,Integer userId);

    List<Coupon> selectList(Integer id,Integer cartId);

    List<Integer> getAvailableCouponIds(Integer userId,Integer cartId);

    List<Coupon> getAvailableCoupon(List<Integer> availableCouponIds);

    void delete(Integer id);
}
